package com.telit.firecommand.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "标绘返回dto对象", description = "标绘返回dto")
public class PlotReturnDto {

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("火情ID")
    private String fireAlarmId;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("用户名称")
    private String username;

    @ApiModelProperty("操作ID")
    private Long actionId;

    @ApiModelProperty("操作名称")
    private String actionName;

    @ApiModelProperty("图形ID")
    private Long iconId;

    @ApiModelProperty("图形名称")
    private String iconName;

    @ApiModelProperty("时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
